package pms.systemm;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import pms.contract.service.GenericGenerator;
import pms.systemm.domain.Systemm;

public class SystemmEntityGenerator extends GenericGenerator{

	@Autowired
	SystemmManager systemmManager;

	@Test
	public void gen_systemm() 
	{
		for (int i = 0; i < 10; i++) 
		{
			Systemm systemm = new Systemm();
			systemm.setSystemmID("systemm_" + i);
			this.systemmManager.save(systemm);
			for (int j = 0; j < 10; j++) 
			{
				Systemm s = new Systemm();
				s.setPassword("systemm_" + i + "_" + j);
				systemm = this.systemmManager.save(s);
				this.systemmManager.save(systemm);
			}
		}
	}
}
